﻿using System.Collections;
using System.Collections.Generic;
using BearUtil.Hidden;
using Sirenix.OdinInspector;
using UnityEngine;
namespace BearUtil
{
	[CreateNodeMenu("自定义节点/短信中承接任务"), Title("短信中承接任务"), NodeTintAttribute("#C8672A")]
	public class MessageQuests : BearNode
	{
		[LabelText("节点类型"), HideInInspector]
		public int type = 102;
		[LabelText("任务ID")]
		public int quest_id = 0;
		[LabelText("文本 id"), ValueDropdown("GetLineKey", DropdownWidth = 300), OnValueChanged("switchContent")]
		public string lines = "";
		[HideLabel, TextArea, Sirenix.OdinInspector.ReadOnly]
		public string _content;
		private List<string> GetLineKey()
		{
			return  LanguageCtrl.Instance.Langs;
		}
		private void switchContent(string lineKey)
		{
			_content = LanguageCtrl.Instance.GetLineContent(lineKey);
		}
	}
}
